html, body, #root {
  width: 100%;
  height: 100%;
  margin: 0;
}

.router-node,
.switch-node,
.server-node {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.router-node { background: #ff5722; }
.switch-node { background: #2196f3; }
.server-node { background: #4caf50; }